<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Login de Alumnos y Profesores</title>
    <link href="<s:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
</head>

<body>
	
	<s:form action="loginAction" method="POST">
		<tr>
			<td colspan="2">Login</td>
		</tr>
		<tr>
			<td colspan="2">
				<s:actionerror />
			</td>
		</tr>
		<s:textfield name="username" label="%{getText('label.login.name')}"/>
		<s:password name="password" label="%{getText('label.login.password')}"/>
		<select name="type" onChange="combo(this, 'theinput')">
		  <option>Profesor</option>
		  <option>Estudiante</option>
		</select>
		<s:submit value="%{getText('label.login.button')}" align="center"/>
	</s:form>

	</body>
</html>
